.float-div {
    position: absolute;
    top: 6px;
    z-index: 1;
    height: 40px;
    width: 100%;
}

.float-in {
    animation: float-in 1s ease-in;
    top: 6px;
    z-index: 1;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.float-stop {
    position: absolute;
    top: 6px;
    z-index: 1;
}

.float-out {
    animation: float-out 1s ease-out;
    top: 6px;
    z-index: 1;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

@keyframes float-in {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes float-out {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}
